<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
	<h:form>

		<p:panelGrid columns="2">
			<f:facet name="header">Authentification</f:facet>

			<h:outputLabel for="nomutilisateur" value="Nom d'utilisateur: *" />
			<p:inputText id="nomutilisateur"
				value="#{personnelController.connectedUser.nomutilisateur}" label="NomUtilisateur" />

			<h:outputLabel for="motdepass" value="Mot de passe: *" />
			<p:password id="motdepass"
				value="#{personnelController.connectedUser.motDePasse}" required="true"
				label="motdepasse" />

			<f:facet name="footer">
				<p:commandButton action="#{personnelController.connect()}" value="se connecter" ajax="false"
					icon="ui-icon-check" style="margin:0" />
			</f:facet>
		</p:panelGrid>

	</h:form>
</body>
</html>
